package com.gcsoftware.configs;

/**
 * 项目常量
 * @author czp
 * date 2018-03-31
 */
public class AppConstants {
    /**
     * 系统定义
     */
    public enum Sys {
        SYS_STR_SPLIT(">", "字符串拆分标记"),
        SYS_MEASURE_DAY("day", "时间度量，以天为单位"),
        SYS_MEASURE_SECOND("second", "时间度量，以秒为单位"),
        SYS_DEF_VAL("NC", "系统缺省值"),
        SYS_SESSION_ID("SESSION_ID", "sessionId"),
        SYS_LOGIN_IP("SYS_LOGIN_IP", "系统登陆IP"),
        SYS_LOGIN_BROWSER("SYS_LOGIN_BROWSER", "系统登陆浏览器"),
        SYS_SESSION_TIME_OUT("SYS_SESSION_TIME_OUT", "会话超时"),
        SYS_LOGOUT("LOGOUT", "登出"),
        SYS_COERCE_LOGOUT("COERCE_LOGOUT", "强制登出"),
        SYS_LOGIN("LOGIN", "登陆");

        Sys(String value, String name){
            this.value = value;
            this.name = name;
        }

        private final String value;
        private final String name;

        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }

    /**
     * 日志标识
     */
    public enum Log {
        LOG_PREFIX("\n***************************** START *****************************\n", "日志前缀"),
        LOG_SUFFIX("\n*****************************  END  *****************************\n", "日志后缀");

        Log(String value, String name){
            this.value = value;
            this.name = name;
        }

        private final String value;
        private final String name;

        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
    }
}
